package asteroids.model.programs.Expression;
import be.kuleuven.cs.som.annotate.Basic;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public class BooleanInequality extends BooleanComparison {

	public BooleanInequality(int line, int column, Expression e1, Expression e2) {
		super(line, column, e1, e2);
	}

	/**
	 * Returns the boolean result of this given boolean equality check.
	 */
	@Override @Basic
	public boolean getBoolean() {
		return ((IBooleanExpression)getFirstExpression()).getBoolean()!=((IBooleanExpression)getSecondExpression()).getBoolean();
	}

}
